package com.topnav.mc.alarm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.topnav.mc.entity.base.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 警情实体类
 */
@Data
@TableName("mc_alarm_info")
public class AlarmInfo extends BaseEntity {
    /**
     * 接警编号	AJBH
     */
    private String alarmCode;
    /**
     * 警情名称	AJMC
     */
    private String alarmName;
    /**
     * 报警时间	SLJJSJ
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date alarmTime;
    /**
     * 报警人	UPLOADFLAG
     */
    private String alarmPeople;
    /**
     * 报警人联系电话	RESERVATION04
     */
    private String alarmTel;
    /**
     * 报警内容	ZYAQ
     */
    private String alarmContent;
    /**
     * 事发地点	RESERVATION10
     */
    private String accidentAddress;
    /**
     * 处警单位	SLJJDW
     */
    private String orgCode;
    /**
     * 处警民警	SLJJRY
     */
    private String policeCode;
    /**
     * 处警登记时间	CREATEDTIME
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date solveTime;
    /**
     * 处警标识	CJBS
     */
    private boolean solveFlag;
    /**
     * 民警意见	SL_LDQZ
     */
    private boolean solveResult;

    @TableField(exist=false)
    private String orgShort;
    @TableField(exist=false)
    private String policeName;

}
